package com.youchuang.dao;

import java.util.List;

import com.youchuang.bean.Product;

public interface ProductDAO extends BaseDao<Product> {

	public Product queryById(String id);

	public List<Product> queryByHasDeleted(int hasDeleted);

	public List<Product> queryByAddTime(long addTime);
	
	public List<Product> queryByCategoryId(int categoryId);
	
	public int queryAllCount();
	
	public List<Product> queryAllLimmitDesc(int first, int max);
	
	public List<Product> queryLimmitByCategoryId(int categoryId, int first, int max);

	public List<Product> queryLimmitByHot(int first, int max);

	public List<Product> queryLimmitByNew(int first, int max);

	public List<Product> queryLimmitByHotNew(long time, int first, int max);

	public List<Product> queryLimmitLikeByPruductName(String productName, int first, int max);

	public List<Product> queryLimmitByCategoryIdNew(int categoryId, int first, int max);
	
	public List<Product> queryLimmitByCategoryIdHot(int categoryId, int first, int max);
	

}
